const mongoose = require("mongoose");

const Schema = new mongoose.Schema({
    name: { type: String },
    password: {
        type: String,
        select: false,
        set(val) {
            return require("bcrypt").hashSync(val, 10);
        }
    },
    date: { type: String },
})

module.exports = mongoose.model("AdminUser", Schema);